package org.domain.sigerec.session;

import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Begin;
import org.jboss.seam.annotations.web.RequestParameter;
import org.jboss.seam.framework.EntityHome;

import org.domain.sigerec.entity.Endereco;

@Name("enderecoHome")
public class EnderecoHome extends EntityHome<Endereco>
{

    /**
	 * 
	 */
	private static final long serialVersionUID = -7511643054173772470L;
	@RequestParameter 
    Long enderecoId;
    
    @Override
    public Object getId() 
    { 
        if (enderecoId==null)
        {
            return super.getId();
        }
        else
        {
            return enderecoId;
        }
    }
    
    @Override @Begin
    public void create() {
        super.create();
    }
 	
}
